package com.sx.iptv.service;

import lombok.RequiredArgsConstructor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class IptvService {
    private static final Logger logger = LoggerFactory.getLogger(IptvService.class);
    private final StringRedisTemplate stringRedisTemplate;

    public String getPlayUrl() {
        String tvUrl = stringRedisTemplate.opsForValue().get("tv_url");
        return tvUrl;
    }
}
